package me.zhengjie.modules.finace_taxation.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.EqualsAndHashCode;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

/**
 * @author 杨荣森
 * @date 2021-06-23
 */
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("ft_live_broadcast")
public class FtLiveBroadcastImport extends BaseRowModel {
    private static final long serialVersionUID = 1L;

//    @TableId(type= IdType.ASSIGN_ID)
//    private String id;

    @ApiModelProperty(value = "所属行业详情")
    @ExcelProperty(value = {"所属行业详情"},index = 0)
    private String title;

    @ApiModelProperty(value = "直播地址")
    @ExcelProperty(value = {"直播地址"},index = 1)
    private String address;

    @ApiModelProperty(value = "直播名称")
    @ExcelProperty(value = {"直播名称"},index = 2)
    private String name;

    public void copyFrom(FtLiveBroadcast source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}

